package com.bstek.ureport.console;

import java.util.Calendar;
import java.util.Date;

public class SessionCacheUser {

    /** 公司编码 */
    private String cc = "";
    /**
     * 单位类型.0:点都内部成员;1:物业处;2:物业科;3:街道办;4:居委会;5:业委会;6:物业公司;7:点都公公司;8:点都渠道;其它为未知数据
     */
    private Integer sign = 0;
    /** 用户登陆后生成的唯一识别码 */
    private String uid;
    /** userId */
    private String userId;
    /** 用户昵称,中文名称 */
    private String userName;
    /** 用户主要单位/公司的ID */
    private String unitId;
    /** 是否是管理员 */
    private boolean isAdmin = false;
    /** 用户登陆时间 */
    private Date loginTime = Calendar.getInstance().getTime();
    /** 用户最新访问时间 */
    private Long millis = System.currentTimeMillis();

    public String getCc() {
        return cc;
    }

    public void setCc(String cc) {
        this.cc = cc;
    }

    public Integer getSign() {
        return sign;
    }

    public void setSign(Integer sign) {
        this.sign = sign;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Long getMillis() {
        return millis;
    }

    public void setMillis() {
        this.millis = System.currentTimeMillis();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public boolean isAdmin() {
        return isAdmin;
    }

    public void setAdmin(boolean isAdmin) {
        this.isAdmin = isAdmin;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

  

}
